'use strict';

module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;

  const BannerSchema = new Schema({
    url: { type: String },
    link: { type: String },
    weight: { type: Number }, // 权重
  });

  return mongoose.model('Banner', BannerSchema);
};
